package com.nameless.feign;

import com.nameless.entity.Menu;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author keluoyisi
 * @program: tong-parent
 * @description:
 * @date 2023-02-23 21:13:06
 */
@FeignClient("car-system")
public interface PermissionFeign {

    @GetMapping("/system/permission/selectPermission/{userId}")
//    List<SysMenu> selectPermission(@PathVariable Integer userId);
    List<Menu> getPermissionByUserId(@PathVariable Integer userId);
}